<template>
  <a-card :bordered='false'>
    <div class="table-page-search-wrapper">
      <a-form layout="inline" :form='searchForm'>
        <a-row :gutter="48">
          <a-col :md="8" :sm="24">
            <a-form-item label="班次名">
              <a-input placeholder="请输入班次名称" v-model="queryParam.frequencyName"/>
            </a-form-item>
          </a-col>
          <a-col :md="8" :sm="24">
            <a-button @click="() => {this.queryPage()}" type="primary">查询</a-button>
            <a-button @click="() =>{ queryParam = {}}" style="margin-left: 8px">重置</a-button>
          </a-col>
        </a-row>
      </a-form>
    </div>
    <a-button @click="(e) => this.goToAdd()" style="margin-bottom: 8px;margin-left: 6px;" type="primary">
      新增
    </a-button>
    <shift-frequency-add-or-update
      ref='initer'
      >

    </shift-frequency-add-or-update>
  </a-card>
</template>

<script>
import {queryParam} from '@views/modules/wfucheck/wfuHongtaiShiftFrequency/template'
import ShiftFrequencyAddOrUpdate from '@views/modules/wfucheck/wfuHongtaiShiftFrequency/shift-frequency-add-or-update'

export default {
  name: 'shift-frequency',
  components: { ShiftFrequencyAddOrUpdate },
  data(){
    return {
      searchForm:this.$form.createForm(this),
      queryParam,
    }
  },
  methods:{
    queryPage(){

    },
    goToAdd(){
      this.$refs.initer.init();
    }
  }
}
</script>

<style scoped>

</style>